﻿
@{
    ViewBag.Title = "EditAndAdd";
    Layout = "~/Views/Shared/_IVSLayout.cshtml";
}

@if (ViewBag.id == 1)//edit
{
      <!-- main start-->
            <div id="main">
			  <!-- InstanceBeginEditable name="EditRegion1" --><h2>Edit Destination</h2><!-- InstanceEndEditable -->   
					<div id="error" class="error"> </div>
					<div id="Div1" class="success"> </div>
               <!-- InstanceBeginEditable name="EditRegion2" -->
			   	<p></p>

					<p></p>
							<table class="inputForm">
                            <tbody>
                            <tr>
									<th scope="row">Name<span class="requirement">*</span></th>
									<td >
                                       <input id="txtName"  class="txt125" value="Khu du lịch Suối Tiên" type="text">
									</td>
                                    <th >City<span class="requirement">*</span></th>
									<td >
                                        <select name="select2" class="txt125">
                                                <option value=" "></option> 
                                                <option value="HCM " selected="true">TP HCM</option>
                                                <option value="HN">Hà Nội</option>                                                
                                                <option value="DN">Đà Nẵng</option>                                                
                                        </select>
                                    </td>                                                               
                                </tr>
                                <tr>
                                    <th scope="row">Note</th>
									<td colspan="3">
                                        <textarea style="width:300px;"></textarea>                                       
									</td>        
                                </tr>
								</tbody>                                							
							</table>
                           <input name="btnSave" type="button" value="Save" onclick="location.href='/MSDT00'" />                       
             <input name="btnBack" type="button" value="Back" onclick="location.href='/MSDT00'" />
							<div Code="divList">
						<div Code="divList">
						<div class="success">
								<p></p>
						</div>
						</div>
						</div>


               <!-- InstanceEndEditable -->   
               
            </div>  
            <!-- main end-->      
}
else
{
    <!-- main start-->
            <div id="main">
			  <!-- InstanceBeginEditable name="EditRegion1" --><h2>Add Destination</h2><!-- InstanceEndEditable -->   
					<div id="error" class="error"> </div>
					<div id="Div1" class="success"> </div>
               <!-- InstanceBeginEditable name="EditRegion2" -->
			   		<div id="tabs-2">
                    <table class="inputForm">
								 <tbody>
								 <tr>
									<th scope="row">Name<span class="requirement">*</span></th>
									<td >
                                       <input id="txtName"  class="txt125" value="" type="text">
									</td>
                                    <th >City<span class="requirement">*</span></th>
									<td >
                                        <select name="select2" class="txt125">
                                                <option value=" "></option> 
                                                <option value="HCM " >TP HCM</option>
                                                <option value="HN">Hà Nội</option>                                                
                                                <option value="DN">Đà Nẵng</option>                                                
                                        </select>
                                    </td>                                                                   
                                </tr>
                                 <tr>
                                    <th scope="row">Note</th>
									<td colspan="3">
                                        <textarea style="width:300px;"></textarea>                                       
									</td>        
                                </tr>				
								</tbody>    
							</table>
					</div>
			
            <input name="btnSave" type="button" value="Save" onclick="location.href='/MSDT00'" />                       
             <input name="btnBack" type="button" value="Back" onclick="location.href='/MSDT00'" />
             	<div Code="divList">
						<div Code="divList">
						<div class="success">
								<p></p>
						</div>
						</div>
						</div>
               <!-- InstanceEndEditable -->   
               
            </div>  
            <!-- main end-->   
}